510b2ae37a4b73b3dd86c5e0afddb1df3b992449,accumulo-store/src/main/java/gaffer/accumulostore/key/core/AbstractCoreKeyAccumuloElementConverter.java,AbstractCoreKeyAccumuloElementConverter,getValueFromProperties,#String#Properties#,99
Before Change
while (propertyNames.hasNext()) {
propertyName = propertyNames.next();
final TypeDefinition typeDefinition = elementDefinition.getPropertyTypeDef(propertyName);
if (typeDefinition != null && isStoredInValue(propertyName, elementDefinition)) {
final Serialisation<?> serialiser = typeDefinition.getSerialiser();
if (null != serialiser) {
Object value = properties.get(propertyName);
try {
if (null != value) {
final byte[] bytes = typeDefinition.getSerialiser().serialise(value);
hasValue = writeBytes(bytes, out);
} else {
final byte[] bytes = typeDefinition.getSerialiser().serialiseNull();
writeBytes(bytes, out);
}
} catch (final IOException e) {
After Change
propertyName = propertyNames.next();
final TypeDefinition typeDefinition = elementDefinition.getPropertyTypeDef(propertyName);
if (isStoredInValue(propertyName, elementDefinition)) {
final Serialisation serialiser = (typeDefinition != null) ? typeDefinition.getSerialiser() : null;
try {
if (null != serialiser) {
Object value = properties.get(propertyName);